/*
 * Copyright (C) 2011-present ShenZhen iBOXCHAIN Information Technology Co.,Ltd.
 *
 * All right reserved.
 *
 * This software is the confidential and proprietary
 * information of iBOXCHAIN Company of China.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with iBOXCHAIN inc.
 */

package com.example.wac.constant;

/**
 * @author wuancheng
 * @description
 * @date 2023-04-15 14:50:00
 */

public interface AuthConstant {
    /**
     * 超级管理员权限码
     */
    String SUPER_ADMIN_PERMS = "**";

    /**
     * 超级管理员名称
     */
    String SUPER_ADMIN_NAME = "超级管理员";

    /**
     * 基础过滤
     */
    String BASE_FILTER = "base_filter";

    interface UserConstants {

        /**
         * 正常
         */
        int STATUS_NOEMAL = 0;

        /**
         * 禁用
         */
        int STATUS_DISABLE = 1;

        /**
         * 默认密码
         */
        String PWD_DEFAULT = "abc123";
    }

    /**
     * 超级管理员权限（角色code）
     */
    String SUPER_RIGHT = "admin";

    /**
     * 超级管理员权限code
     */
    String SUPER_RIGHT_CODE = "**";

    /**
     * 账号
     */
    interface LoginInfo {
        /**
         * 用户状态(0-正常 1-禁用)
         */
        int ENABLED = 0;
        /**
         * 用户状态(0-正常 1-禁用)
         */
        int DISABLED = 1;
        /**
         * 用户锁定状态(0-正常 1-锁定)
         */
        int UNLOCKED = 0;
        /**
         * 用户锁定状态(0-正常 1-锁定)
         */
        int LOCKED = 1;
    }

    /**
     * 角色状态
     */
    interface RoleStatus {
        /**
         * 正常
         */
        Integer NORMAL = 0;
        /**
         * 禁用
         */
        Integer LOCK = 1;
    }

    /**
     * 菜单标志
     */
    interface MenuFlag {
        String Y = "Y";

        String N = "N";
    }
}
